// 咨询中心 详情页面
<template>
  <div class="consultingDetails">
    <h2 class="title">{{$store.state.newDetails.title}}</h2>
    <small class="small">{{$store.state.newDetails.time}}</small>
    <div v-html="newDetails.content" class="content"></div>
  </div>
</template>
<script>
export default {

  name: "consultingDetails",

  data(){
    return{
      newDetails:{},
    }
  },

  methods: {
    async list() {
      this.$store.commit('listLoading',true)
      let res = await this.$http({
        method: 'post',
        url: '/api/home/advisory_center/newsinfo',
        data: {
          id:this.$store.state.newDetails.id,
          pid:this.$store.state.newDetails.pid
        }
      })
      if (res.data.State.Code == 200) {
        this.newDetails = res.data.info
        this.$store.commit('listLoading',false)
      }
    }
  },

  mounted() {
    this.list()
  }

}

</script>

<style lang="scss" scoped>
.consultingDetails {
  width: 966px;
  /deep/ .el-pagination {
    margin-top: 30px;
    margin-left: 265px;
  }
  .title {
    text-align: center;
    line-height: 40px;
    margin-top: 10px;
  }
  .small {
    display: block;
    text-align: center;
    color: #aeaeae;
  }
}
</style>

